﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VideoPlay.aspx.cs" Inherits="AUV5.Web.Pages.VideoPlay" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="/!js/main.js" type="text/javascript"></script>
    <script src="/!js/default.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {
            var videopath = getQueryString("videoPath");
            if (videopath != "") {
                var swfVersionStr = "9.0.0";
                var xiSwfUrlStr = "/!js/swfobject/playerProductInstall.swf";
                var flashvars = {};
                var params = {};
                params.quality = "high";
                params.bgcolor = "#000000";
                params.allowscriptaccess = "sameDomain";
                params.allowfullscreen = "true";
                params.wmode = "transparent"; //
                var attributes = {};
                attributes.id = "previewPlayer";
                attributes.name = "previewPlayer";
                attributes.align = "middle";
                swfobject.embedSWF("/!swf/VideoPlayer/VPlayer.swf?t=d&s=&v=" + videopath + "&h=1&lo=1", "flashContent", "450", "450", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
            }
            //swfobject.createCSS("#flashContent", "display:block;text-align:left;");            
        });
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="flashContent">
        <p>
            To view this page ensure that Adobe Flash Player version 9.0.0 or greater is installed.
        </p>
        <script type="text/javascript">
            var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
            document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
                            + pageHost + "www.adobe.com/../images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>"); 
        </script>
    </div>
    </form>
</body>
</html>
